<template>
	<view @touchmove.stop.prevent>
		<view class="mask" @touchmove.stop.prevent="moveHandle" @click="isShowModal=true"></view>
		<view class="container">
			<view class="tip-pay"><text @click="isShowModal=true">取消</text><text>支付</text></view>
			<view class="moneytitle">￥<text>{{price}}</text></view>
			<view class="moneyInfo">服务内容</view>
			<view class="moneyInfobar">
				<text>{{info}}</text>
			</view>
			<view class="payTapyTitle">支付方式</view>
			<view class="choosePay">
				<view class="payItem" @click="handleSelect(2)">
					<image src="@/static/icon1/yue.png" mode="aspectFill"></image><text>余额<text
							class="yueText">￥{{ userInfo.amount/100 }}</text></text>
					<view :class="requestObj.payType==2 ? 'selected' : 'select'"></view>
				</view>
				<view v-if="zhifubaole" class="payItem" @click="handleSelect(5)">
					<image src="@/static/icon1/alipay.png" mode="aspectFill"></image><text>支付宝</text>
					<view :class="requestObj.payType==5 ? 'selected' : 'select'"></view>
				</view>
				<view v-if="weixinle" class="payItem" @click="handleSelect(4)">
					<image src="@/static/icon1/wechat.png" mode="aspectFill"></image><text>微信</text>
					<view :class="requestObj.payType==4 ? 'selected' : 'select'"></view>
				</view>
				<view v-if="zhifubao" class="payItem" @click="handleSelect(0)">
					<image src="@/static/icon1/alipay.png" mode="aspectFill"></image><text>支付宝</text>
					<view :class="requestObj.payType==0 ? 'selected' : 'select'"></view>
				</view>
				<view v-if="weixin" class="payItem" @click="handleSelect(1)">
					<image src="@/static/icon1/wechat.png" mode="aspectFill"></image><text>微信</text>
					<view :class="requestObj.payType==1 ? 'selected' : 'select'"></view>
				</view>
			</view>
			<showModalButton v-show="isShowModal" :modalText1="modalText1" :modalText2="'确认要取消吗？'"
				:buttonLeftText="'暂时放弃'" :buttonRightText="'继续支付'" :modalTextSize="'36rpx'" :modalTextHeight="'53rpx'"
				:rightButtonColor="'#FE4B28'" @clickLeft="closePayPage(),isShowModal=false"
				@clickRight="isShowModal=false"></showModalButton>
			<view class="confirm" @click="handlePayBond">确认支付</view>
			<!-- 支付密码弹框 -->
			<view v-show="isOpenModal" class="share-modal">
				<view class="main" :class="{'errorpw':isShowPassWordAnimation}">
					<image @click="handleCloseModal" class="close" src="/static/icon1/47.png"></image>
					<view class="modal-title">
						<text>请输入支付密码</text>
					</view>
					<view class="modal-content">
						<view class="modal-content-line">
							<u-line color="#ccc"></u-line>
						</view>
						<view class="modal-content-money">
							<view class="rmb">￥</view>
							<view class="rmb-num">{{price}}</view>
						</view>
						<view class="modal-content-type">
							<view class="modal-content-type-left">支付方式</view>
							<view class="modal-content-type-right">
								<image src="../../static/rmb.png" mode="widthFix"></image>
								<text>余额</text>
							</view>
						</view>
					</view>
					<view class="pay-code">
						<input type="number" :focus="focus" v-model="requestObjs.payPwd" maxlength="6"
							@input="getPayCode" />
						<block v-for="(item, index) in ranges" :key="index">
							<view :class="['box', { active: codeIndex === item}]">
								<view class="line"></view>
								<text>{{ codeArr[index] ? codeArr[index] : ''}}</text>
							</view>
						</block>
					</view>
					<view class="repwd" v-if="!isShowForgetPassword" @click="toRePasssWord">忘记密码</view>
					<view class="repwd" style="color: #FE4B28;" v-if="isShowForgetPassword" @click="toRePasssWord">忘记密码
					</view>
					<!-- <view class="button" @click="handleComfirmPay">确认</view> -->
				</view>
			</view>
			<u-modal @cancel="handleZf" @confirm="handleZf" cancelText="重新支付" confirmText="已支付" confirmColor="#F39B19"
				:show="isShowZfConf" showCancelButton>
				<view class="slot-content">
					<text style="font-size: 34rpx;padding-bottom: 0;">是否已支付？</text>
				</view>
			</u-modal>
		</view>
	</view>
</template>
<script>
	import unit from '../../libs/newUnit.js'
	import showModalButton from '@/components/showModalButton/showModalButton.vue'
	export default {
		props: {
			info: {
				type: String,
				default: '请输入'
			},
			price: {
				type: Number,
				default: 0
			},
			modalText1: {
				type: String,
				default: '请输入'
			},
			UnsealId: {
				type: Number,
				default: 0
			},
		},
		components: {
			showModalButton,
		},
		data() {
			return {
				focus: false, //键盘输入焦点
				codeIndex: 1,
				codeArr: [], //密码
				ranges: [1, 2, 3, 4, 5, 6],
				isOpenModal: false, //是否打开分享弹框
				requestObj: {
					unsealId: 0, //封号的记录的ID
					payType: '', //0支付宝，1微信，2钱包
				},
				requestObjs: {
					payPwd: 0, //支付密码
					unsealId: 0, //封号的记录的ID
					payType: 5, //0支付宝，1微信，2钱包
				},
				userInfo: {
					user: {},
					params: {}
				}, //当前用户信息
				isShowForgetPassword: false, //是否弹出忘记密码
				isShowPassWordAnimation: false, //密码错误执行动画
				isShowModal: false, //是否显示对话框
				ssurl: '',
				tempTrade: '',
				isShowZfConf: false,
				zhifubao: false,
				zhifubaole: false,
				weixin: false,
				weixinle: false
			};
		},
		mounted() {
			this.getPayType()
		},
		methods: {
			async getPayType() {
				let res = await this.$fetch(this.$api.property_list_by_type_and_key, {
					type: 1,
					key: 'pay_channel_open_list'
				}, 'POST')
				if (res.code != 0) {
					return
				}
				let data = res.data
				if (!data) {
					return
				}
				let dataArr = data.split(',')
				for (var i = 0; i < dataArr.length; i++) {
					if (dataArr[i] == 0) {
						this.zhifubao = true
						this.requestObj.payType = 0
					} else if (dataArr[i] == 5) {
						this.zhifubaole = true
						this.requestObj.payType = 5
					} else if (dataArr[i] == 1) {
						this.weixin = true
					} else if (dataArr[i] == 4) {
						this.weixinle = true
					}
				}
				console.log(dataArr)
			},
			async handleZf() {
				let res = await this.$fetch(this.$api.findUserPayOrder, {}, 'POST')
				if (res.code) {
					uni.showToast({
						title: res.msg,
						icon: 'none'
					})
					setTimeout(() => {
						this.isShowZfConf = false
					}, 500)
					return
				}
				if (!res.code) {
					uni.showToast({
						title: '已成功支付',
						icon: 'none'
					})
					setTimeout(() => {
						this.closePayPage()
						uni.$emit('closeFjin', {})
						uni.reLaunch({
							url: '/pages/Succeed/Succeed?title=解禁罚金已经支付！&buttonTitle=返回首页&info=&name=支付成功'
						})
					}, 800)
				} else {
					uni.showToast({
						title: '未支付，请及时支付',
						icon: 'none'
					})
				}
				this.isShowZfConf = false
				uni.removeStorageSync('tempTrade')
				uni.removeStorageSync('wxTempTrade')
				uni.removeStorageSync('iswxzf')
			},
			//关掉页面
			closePayPage() {
				unit.Closure_time()
				this.$emit('closePayPage');
			},
			// 得到输入的密码
			getPayCode(e) {
				let {
					value
				} = e.detail
				let del = false
				this.requestObjs.payPwd = value
				if (value.length < this.codeArr.length) {
					del = true
				}
				this.codeArr.length = value.length
				this.codeArr.fill("●")
				this.codeIndex = this.codeArr.length + 1
				if (del) {
					return
				}
				this.codeArr[value.length - 1] = value[value.length - 1]
				setTimeout(() => {
					if (this.codeArr.length != 0) {
						this.$set(this.codeArr, [this.codeArr.length - 1], "●")
					}
				}, 1000)
				if (this.codeIndex == 7) {
					this.handleComfirmPay()
				}
				console.log('codeArr', this.codeIndex, this.codeArr)
			},
			//点击链接至账户安全。
			toRePasssWord() {
				uni.navigateTo({
					url: '/pages/account-security/account-security'
				})
			},
			// 钱包支付确认
			async handleComfirmPay() {
				if (this.userInfo.amount / 100 < this.price) {
					this.handleCloseModal()
					this.closePayPage()
					uni.showToast({
						title: '账户余额不足，请充值',
						icon: 'none'
					})
				} else {
					this.requestObjs.unsealId = parseInt(this.UnsealId);
					this.requestObjs.payType = this.requestObj.payType;
					//let res = await this.$fetch(this.$api.Closure_need_margin, this.requestObjs, 'POST')
					let res = await this.$fetch(this.$api.Pay_penalty, this.requestObjs, 'POST')
					console.log('钱包支付确认', res)
					if (res.code) {
						this.emptyInput()
						uni.showToast({
							title: res.msg,
							icon: 'none'
						})
						return
					} else {
						setTimeout(() => {
							uni.$emit('closeFjin', {})
							this.handleCloseModal()
							this.closePayPage()
							uni.navigateTo({
								url: '/pages/Succeed/Succeed?title=解禁罚金已经支付！&buttonTitle=返回首页&info=&name=支付成功'
							})
						}, 800)
					}
					//	unit.Closure_need_margin(this.UnsealId)
				}
			},
			//清空输入框，更新是否弹出忘记密码标识
			emptyInput() {
				this.isShowPassWordAnimation = true
				this.isShowForgetPassword = true
				this.requestObjs.payPwd = ''
				this.codeArr = []
				this.codeIndex = 1
				setTimeout(() => {
					this.isShowPassWordAnimation = false
				}, 1200)
			},
			// 关闭分享弹框
			handleCloseModal() {
				this.isOpenModal = false
				this.requestObjs.payPwd = ''
				this.codeArr = []
				this.codeIndex = 1
			},
			//选择提现类型
			handleSelect(index) {
				this.requestObj.payType = index
				/* if (index == 2) { */
				/* this.isOpenModal=true; */
				/* if (uni.getStorageSync('isHavePayPassword') == false) {
				 		this.setPayPassword()
				 	} */
				/* } */
			},
			// 确认发布，
			async handlePayBond() {
				this.requestObj.unsealId = this.UnsealId
				console.log("requestObj", this.requestObj);
				let _this = this
				//支付宝支付
				if (this.requestObj.payType == 5) {
					//let res = await this.$fetch(this.$api.recharge, this.requestObj, 'POST')
					let res = await this.$fetch(this.$api.Pay_penalty, this.requestObj, 'POST')
					if (res.code) return uni.showToast({
						title: res.msg,
						icon: 'none'
					})
					// let zfUrl = JSON.parse(res.msg).url
					// uni.navigateTo({
					// 	url: '/pages/app-pay/app-pay-juhe/app-pay-juhe?zfUrl='+zfUrl,
					// });
					this.tempTrade = ''
					let tempData = JSON.parse(res.msg)
					this.tempTrade = tempData.trade
					console.log('tempTrade', tempData.trade)
					uni.setStorageSync('tempTrade', this.tempTrade)
					let system = uni.getSystemInfoSync().platform
					if (system == 'android') {
						this.ssurl = tempData.url
						plus.runtime.openURL('alipays://platformapi/startapp?appId=20000067&url=' + this.ssurl, e => {
							uni.showToast({
								title: `打开支付宝失败！请检查是否已安装`,
								icon: 'none'
							})
						})
						setTimeout(() => {
							this.ssurl = ''
							this.isShowZfConf = true
						}, 5000)
					}
					if (system == 'ios') {
						plus.runtime.launchApplication({
							action: tempData.url
						})
						setTimeout(() => {
							this.ssurl = ''
							this.isShowZfConf = true
						}, 1000)
					}
					return
				} else if (this.requestObj.payType == 2) {
					this.isOpenModal = true;
					//this.handleComfirmPay()
					/* if (uni.getStorageSync('isHavePayPassword') == false) {
					 	this.setPayPassword()
					 } else {
					 	this.isOpenModal = true
					 	this.focus = true
					 } */
				} else if (this.requestObj.payType == 4) {
					//微信支付
					var thate = this
					setTimeout(() => {
						thate.ssurl = ''
						thate.isShowZfConf = true
					}, 3000)
					plus.share.getServices(res => {
						let sweixin = null;
						for (let i in res) {
							if (res[i].id == 'weixin') {
								sweixin = res[i];
							}
						}
						//唤醒微信小程序
						if (sweixin) {
							sweixin.launchMiniProgram({
									id: uni.getStorageSync('UUID'),
									type: 0, //小程序版本  0-正式版； 1-测试版； 2-体验版。
									path: 'pages/app-pay/app-pay-juhe/app-pay-juhe?api=' + this.$api
										.Pay_penalty + '&requestObj=' + JSON.stringify(this.requestObj) +
										'&token=' + uni.getStorageSync(
										'token') //小程序的页面,用传的参数在小程序接值判断跳转指定页面
								},
								//目标小程序点击返回App后执行的回调,在此接收binderror="launchAppError"的参数
								res => {
									console.log(res)
								}, err => {
									console.log(err)
								});
						}
					});
				} else if (this.requestObj.payType == 0) {
					let res = await this.$fetch(this.$api.Pay_penalty, this.requestObj, 'POST')
					if (res.code) return uni.showToast({
						title: res.msg,
						icon: 'none'
					})
					console.log("支付宝支付", res.msg);
					uni.requestPayment({
						provider: 'alipay',
						orderInfo: res.msg, //微信、支付宝订单数据
						success: function(res) {
							console.log('success:' + JSON.stringify(res));
							uni.showToast({
								title: '购买成功~',
								icon: 'none'
							})
							setTimeout(() => {
								uni.$emit('closeFjin', {})
								_this.closePayPage()
								uni.navigateTo({
									url: '/pages/Succeed/Succeed?title=解禁罚金已经支付！&buttonTitle=返回首页&info=&name=支付成功'
								})
							}, 800)
						},
						fail: function(err) {
							console.log('fail:' + JSON.stringify(err));
						}
					})
				} else if (this.requestObj.payType == 1) {
					let res = await this.$fetch(this.$api.Pay_penalty, this.requestObj, 'POST')
					if (res.code) return uni.showToast({
						title: res.msg,
						icon: 'none'
					})
					console.log(res)
					console.log("微信支付", typeof res.data);
					uni.requestPayment({
						provider: 'wxpay',
						orderInfo: res.data, //微信、支付宝订单数据
						success: function(res) {
							console.log('success:' + JSON.stringify(res));
							uni.showToast({
								title: '购买成功~',
								icon: 'none'
							})
							setTimeout(() => {
								_this.closePayPage()
								uni.$emit('closeFjin', {})
								uni.reLaunch({
									url: '/pages/Succeed/Succeed?title=解禁罚金已经支付！&buttonTitle=返回首页&info=&name=支付成功'
								})
							}, 800)
						},
						fail: function(err) {
							console.log('fail:' + JSON.stringify(err));
						}
					})
				}
			},
			setPayPassword() {
				uni.showModal({
					title: '您还未设置支付密码',
					content: '是否现在就去设置支付密码？',
					success: function(res) {
						if (res.confirm) {
							uni.navigateTo({
								url: '/pages/set-pay-code/set-pay-code'
							})
						} else if (res.cancel) {
							uni.showToast({
								title: '未设置支付密码~',
								icon: 'none'
							})
						}
					}
				})
			},
			// 获取当前用户信息
			async getUserInfo() {
				let res = await this.$fetch(this.$api.get_current_user, {}, 'GET')
				//	console.log(res)
				if (res.code) return uni.showToast({
					title: res.msg,
					icon: 'none'
				})
				//console.log(res.data)
				uni.setStorageSync('userInfo', res.data)
				this.userInfo = res.data
				// if (this.userInfo.amount != 0) {
				// 	this.requestObj.payType = 2
				// }
			},
		},
		beforeMount() {
			this.getUserInfo()
			// if(uni.getStorageSync('isHavePayPassword') == true) this.requestObj.payType = 2
		},
		onBackPress(e) {
			this.isShowModal = true
			return true
		},
	}
</script>
<style lang="less">
	.container {
		position: fixed;
		bottom: 0;
		left: 0;
		background: #F2F2F2;
		border-radius: 25rpx 25rpx 0 0;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		align-items: center;
		z-index: 502;

		.share-modal {
			z-index: 11;
			position: fixed;
			bottom: 0;
			height: 100vh;
			width: 100vw;
			background-color: rgba(0, 0, 0, 0.40);
			display: flex;
			align-items: center;
			justify-content: center;

			&>.main {
				position: relative;
				top: -100rpx;
				width: 570rpx;
				// height: 250rpx;
				padding: 30rpx;
				background: #FFFFFF;
				box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.05) inset;
				border-radius: 17px;
				line-height: 40rpx;
				display: flex;
				flex-direction: column;
				align-items: center;

				&>.modal-title {
					font-size: 32rpx;
					font-weight: 600;
					margin-top: 20rpx;

					// margin: 30rpx 0 50rpx;
					&>.imgs {
						position: relative;

						image {
							position: absolute;
							top: 0rpx;
							bottom: 0;
							right: -80rpx;
							width: 50rpx;
							height: 40rpx;
						}
					}
				}

				.modal-content {
					width: 100%;
					height: 240rpx;

					// border: 1px solid;
					.modal-content-line {
						display: flex;
						justify-content: center;
						align-items: center;
						margin: 30rpx 30rpx;
					}

					.modal-content-money {
						width: 100%;
						height: 100rpx;
						margin-top: -10rpx;
						display: flex;
						justify-content: center;
						align-items: center;

						// border:1px solid;
						.rmb {
							font-size: 40rpx;
							color: #333333;
							margin-right: 10rpx;
							font-weight: 600;
							margin-top: 15rpx;
						}

						.rmb-num {
							font-size: 66rpx;
							color: #333333;
							font-weight: 600;
						}
					}

					.modal-content-type {
						width: 92%;
						margin: 0 auto;
						height: 80rpx;
						// border: 1px solid;
						display: flex;
						justify-content: space-between;
						align-items: center;

						.modal-content-type-left {}

						.modal-content-type-right {
							display: flex;
							justify-content: center;
							align-items: center;

							image {
								width: 40rpx;
								height: 100%;
							}

							text {
								margin-left: 6rpx;
								color: #333333;
								font-size: 26rpx;
							}
						}
					}
				}

				&>.pay-code {
					padding-bottom: 10rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					text-align: center;
					position: relative;

					&>input {
						position: absolute;
						top: 0;
						left: -100%;
						width: 200%;
						height: 100%;
						text-align: left;
						z-index: 9;
						opacity: 1;
					}

					&>.box {
						display: flex;
						align-items: center;
						justify-content: center;
						position: relative;
						width: 80rpx;
						height: 80rpx;
						margin-right: 10rpx;
						font-size: 22px;
						line-height: 90rpx;
						box-sizing: border-box;
						background-color: #F2F2F2;
						border-radius: 2px;

						&:last-child {
							margin-right: 0;
						}
					}

					&>.active {
						border: 2rpx solid #cccccc;

						@keyframes twinkling {
							0% {
								opacity: 0.1;
							}

							50% {
								opacity: 0.8;
							}

							100% {
								opacity: 0.1;
							}
						}

						&>.line {
							display: block;
							position: absolute;
							left: 50%;
							top: 50%;
							transform: translate(-50%, -50%);
							width: 2upx;
							height: 40upx;
							background: #333333;
							animation: twinkling 1s infinite ease;
						}
					}
				}

				.repwd {
					height: 62rpx;
					margin-bottom: -30rpx;
					font-size: 24rpx;
					color: #999999;
					// border: 1px solid;
					width: 92%;
					margin: 0 auto;
					display: flex;
					justify-content: flex-end;
					align-items: center;
				}

				&>.button {
					display: flex;
					align-items: center;
					justify-content: center;
					width: 180rpx;
					height: 70rpx;
					margin-top: 60rpx;
					border-radius: 50rpx;
					background-color: #FCC928;

					&:active {
						opacity: 0.7;
					}
				}

				&>.close {
					position: absolute;
					right: 30rpx;
					top: 30rpx;
					width: 42rpx;
					height: 42rpx;
				}
			}
		}

		&>.tip-pay {
			width: 690rpx;
			height: 50rpx;
			margin-top: 20rpx;
			display: flex;

			&>text:nth-child(1) {
				font-size: 32rpx;
				font-weight: 500;
				color: #ABABAB;
				line-height: 45rpx;
			}

			&>text:nth-child(2) {
				font-size: 36rpx;
				font-weight: bold;
				color: #000000;
				line-height: 45rpx;
				margin-left: calc(50% - 56rpx);
				transform: translate(-50%);
			}
		}

		&>.main {
			background-color: #FFFFFF;
			display: flex;
			flex-direction: column;
			padding: 30upx;
			margin-top: 30rpx;
		}

		&>.confirm {
			position: fixed;
			bottom: 73rpx;
			background: #FCC928;
			display: flex;
			justify-content: center;
			align-items: center;
			width: 690rpx;
			height: 88rpx;
			font-size: 36rpx;
			color: #402110;
			border-radius: 12rpx;

			&:active {
				opacity: 0.7;
			}
		}
	}

	.errorpw {
		animation: swing 1s .15s linear 1;
	}

	@keyframes swing {

		10%,
		90% {
			transform: translate(-4rpx, 0);
		}

		20%,
		80% {
			transform: translate(+4rpx, 0);
		}

		30%,
		70% {
			transform: translate(-6rpx, 0);
		}

		40%,
		60% {
			transform: translate(+6rpx, 0);
		}

		50% {
			transform: translate(-8rpx, 0);
		}
	}

	.mask {
		z-index: 501;
		width: 100vw;
		height: 100vh;
		position: fixed;
		top: 0;
		left: 0;
		background: rgba(0, 0, 0, 0.40);
	}

	.moneytitle {
		width: 750rpx;
		height: 80rpx;
		margin-top: 60rpx;
		display: flex;
		justify-content: center;
		align-items: flex-end;
		font-size: 36rpx;
		font-weight: bold;
		color: #FE4B28;
		line-height: 45rpx;

		&>text {
			font-size: 80rpx;
			font-weight: bold;
			color: #FE4B28;
			line-height: 80rpx;
		}
	}

	.moneyInfo {
		font-size: 28rpx;
		font-weight: bold;
		color: #000000;
		line-height: 45rpx;
		margin-top: 20rpx;
		width: 690rpx;
	}

	.moneyInfoPs {
		font-size: 24rpx;
		font-weight: 500;
		color: #A5A5A5;
		line-height: 24rpx;
		margin-top: 14rpx;
		width: 690rpx;
	}

	.moneyInfobar {
		width: 690rpx;
		//height: 106rpx;
		background: #FFFFFF;
		border-radius: 8rpx;
		margin-top: 26rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 36rpx 0;

		&>text:nth-child(1) {
			font-size: 26rpx;
			font-weight: 500;
			color: #000000;
			line-height: 48rpx;
			margin-left: 30rpx;
		}

		&>text:nth-child(2) {
			font-size: 26rpx;
			font-weight: 500;
			color: #FE4B28;
			line-height: 58rpx;
			margin-right: 30rpx;
		}
	}

	.payTapyTitle {
		width: 690rpx;
		font-size: 28rpx;
		font-weight: bold;
		color: #000000;
		line-height: 45rpx;
		margin-top: 40rpx;
		margin-bottom: 30rpx;
	}

	.choosePay {
		width: 690rpx;
		height: 100%;
		background: #FFFFFF;
		border-radius: 8rpx;
		margin-bottom: 212rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.payItem {
		width: 630rpx;
		height: 60rpx;
		margin: 40rpx 0;
		display: flex;
		align-items: center;
		justify-content: space-between;

		&>image {
			width: 60rpx;
			height: 60rpx;
		}

		&>text {
			font-size: 26rpx;
			font-weight: 500;
			color: #000000;
			line-height: 36rpx;
			margin-left: 20rpx;
			flex: 1;
		}

		.yueText {
			font-size: 26rpx;
			font-weight: 500;
			color: #A5A5A5;
			line-height: 45rpx;
			margin-left: 20rpx;
		}

		.select {
			width: 44rpx;
			height: 44rpx;
			border: 1px solid #AFAFAF;
			border-radius: 50%;
		}

		.selected {
			width: 45rpx;
			height: 45rpx;
			background-image: url(../../static/icon1/hdg.png);
			background-repeat: repeat;
			background-size: 100% 100%;
		}
	}
</style>